package com.test.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/10/16 13:47
 */
public class DateFormatUtil
{
    public static String format(Date birth, String pattern)
    {
        SimpleDateFormat dateFormat = new SimpleDateFormat(pattern);
        return dateFormat.format(birth);
    }
}
